package cn.wwcyc.exception;

import lombok.Data;

@Data
public class WWException extends RuntimeException{
    Integer code;
    String message;
    public WWException(Integer code, String message){
        this.code = code;
        this.message = message;
    }
    public WWException(WWExceptionEnum wwex){
        this.code = wwex.getCode();
        this.message = wwex.getMessage();
    }
}
